//
//  MPResponse.h
//  SearchPeople
//
//  Created by zk on 16/5/10.
//
//

#import <Foundation/Foundation.h>

#define DATA_FORMAT_ERROR   @"数据格式错误"
#define NETWORK_UNABLE      @"没有网络哦~"
#define REQUEST_FAILE       @"网络请求失败~~请检验网络是否连了~"

@interface MPResponse : NSObject

- (id)initWithResponseDic:(NSDictionary *)responseDic;

@property (assign, nonatomic) BOOL isSuccess; //是否成功
@property (strong, nonatomic) NSString *responseName; //响应请求名字
@property (strong, nonatomic) NSString *errorMsg; //错误信息
@property (strong, nonatomic) NSDictionary *result; //结果数据

/**
 *  加载结果数据
 *
 *  @param resultData resultData description
 */
- (void)loadResultData:(NSDictionary *)resultData;

/**
 *  描述当前对象
 *
 *  @return return value description
 */
- (NSString *)description;


@end
